--[[

        monster_team.lua
        exported by excel2lua.py
        from file:monster_team.xlsx

--]]

local _data = {
  [1] = {id = 1,monster_1 = 2,monster_2 = 2,monster_3 = 3,monster_4 = 5,monster_5 = 1,monster_6 = 5,res_id = 'werwolf',drop_id = 1,level = 1,name = '狼魔',},
  [2] = {id = 2,monster_1 = 12,monster_2 = 10,monster_3 = 3,monster_4 = 5,monster_5 = 1,monster_6 = 9,res_id = 'zombiemalesmall_3',drop_id = 1,level = 1,name = '僵尸',},
  [3] = {id = 3,monster_1 = 3,monster_2 = 2,monster_3 = 3,monster_4 = 5,monster_5 = 5,monster_6 = 7,res_id = 'zombiemaleSmall_2',drop_id = 1,level = 1,name = '僵尸',},
  [4] = {id = 4,monster_1 = 2,monster_2 = 4,monster_3 = 12,monster_4 = 8,monster_5 = 1,monster_6 = 7,res_id = 'zombiemalesmall_1',drop_id = 1,level = 5,name = '僵尸',},
  [5] = {id = 5,monster_1 = 4,monster_2 = 2,monster_3 = 3,monster_4 = 5,monster_5 = 8,monster_6 = 11,res_id = 'zombiemalesmall',drop_id = 1,level = 10,name = '僵尸',},
  [6] = {id = 6,monster_1 = 2,monster_2 = 16,monster_3 = 3,monster_4 = 5,monster_5 = 1,monster_6 = 7,res_id = 'zombiemaleremote',drop_id = 1,level = 10,name = '僵尸',},
  [7] = {id = 7,monster_1 = 5,monster_2 = 4,monster_3 = 3,monster_4 = 15,monster_5 = 2,monster_6 = 7,res_id = 'zombiemale',drop_id = 1,level = 15,name = '僵尸',},
}

local id_to_index={
   [1] = 1,
   [2] = 2,
   [3] = 3,
   [4] = 4,
   [5] = 5,
   [6] = 6,
   [7] = 7,
}

local monster_team={}

function monster_team.length() 
   return #_data 
end 

function monster_team.indexOf(index) 
   return _data[index] 
end 

function monster_team.get(id) 
  return monster_team.indexOf(id_to_index[id])
end 

return monster_team